import request from '../utils/request.js'
//首页获取数据
export function getHomeData(params) {
    return request({
        url: "/getasdasd",
        method: 'get',
        params
    })
}
//首页的添加
export function addHome(data) {
    return request({
        url: "/savehome1",
        method: 'post',
        data
    })
}
//首页的搜索
export function searchFn(data) {
    return request({
        url: '/searchhome1',
        method: 'post',
        data
    })
}
//首页的删除
export function deleById(data) {
    return request({
        url: '/delhome1',
        method: 'post',
        data
    })
}
//修改请求
export function xiugaiFn(data) {
    return request({
        url: '/updatehome1',
        method: 'post',
        data
    })
}
//批量删除
export function delAllFn(params) {
    return request({
        url: '/Alldelhome1',
        method: 'post',
        data: params
    })

}